Spaces:
Sleeping
Sleeping
dhruv575 commited on
Commit ·
a29113b
1
Parent(s): f658de1
Fixed backslashes
Browse files
routes/department_routes.py
CHANGED
|
@@ -10,7 +10,7 @@ from utils.auth import token_required, admin_required
|
|
| 10 |
department_bp = Blueprint('departments', __name__)
|
| 11 |
|
| 12 |
# Public route for creating a new department with first admin
|
| 13 |
-
department_bp.route('
|
| 14 |
|
| 15 |
# Routes that require authentication
|
| 16 |
department_bp.route('/', methods=['GET'])(token_required(get_all_departments))
|
|
|
|
| 10 |
department_bp = Blueprint('departments', __name__)
|
| 11 |
|
| 12 |
# Public route for creating a new department with first admin
|
| 13 |
+
department_bp.route('', methods=['POST'])(create_department)
|
| 14 |
|
| 15 |
# Routes that require authentication
|
| 16 |
department_bp.route('/', methods=['GET'])(token_required(get_all_departments))
|