diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2022-07-11 14:31:48 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-07-11 14:31:48 +0000 |
| commit | 60df0a70339f88af01158387732d4e56b621c58a (patch) | |
| tree | 064684534f48532b2f7af97f92ca6ec7bee540c2 /db | |
| parent | b159096036c85fedf7b9c8d5dd064ab33cbba002 (diff) | |
move sem-week calculation to php, closes #1147
Closes #1147
Merge request studip/studip!762
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.2.16_activate_semester_routes.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrations/5.2.16_activate_semester_routes.php b/db/migrations/5.2.16_activate_semester_routes.php new file mode 100644 index 0000000..082a5db --- /dev/null +++ b/db/migrations/5.2.16_activate_semester_routes.php @@ -0,0 +1,14 @@ +<?php +class ActivateSemesterRoutes extends Migration +{ + public function description() + { + return "Activates all semester routes"; + } + + public function up() + { + require_once 'app/routes/Semester.php'; + RESTAPI\ConsumerPermissions::get()->activateRouteMap(new RESTAPI\Routes\Semester()); + } +} |
