mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
feat(api): add /sync-from-legacy route (#192)
* feat(api): add /sync-from-legacy route * chore: remove extraneous dockerfile * chore: remove extraneous dockerfile build * chore: remove extraneous dockerfile build matrix
This commit is contained in:
parent
a983492154
commit
bfc96b0750
13 changed files with 209 additions and 6 deletions
|
@ -6,6 +6,7 @@ import { GetSlug } from './handlers/get-slug';
|
|||
import { LoginBounce } from './handlers/login-bounce';
|
||||
import { LoginCallback } from './handlers/login-callback';
|
||||
import { RevokeSession } from './handlers/revoke-session';
|
||||
import { SyncFromLegacy } from './handlers/sync-from-legacy';
|
||||
import { UpdateRoles } from './handlers/update-roles';
|
||||
import { Router } from './router';
|
||||
import { respond } from './utils/api-tools';
|
||||
|
@ -26,6 +27,7 @@ router.add('POST', 'revoke-session', RevokeSession);
|
|||
router.add('GET', 'get-slug', GetSlug);
|
||||
router.add('GET', 'get-picker-data', GetPickerData);
|
||||
router.add('PATCH', 'update-roles', UpdateRoles);
|
||||
router.add('POST', 'sync-from-legacy', SyncFromLegacy);
|
||||
|
||||
// Root users only
|
||||
router.add('GET', 'x-create-roleypoly-data', CreateRoleypolyData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue