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:
41666 2021-03-22 16:54:33 -04:00 committed by GitHub
parent a983492154
commit bfc96b0750
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 209 additions and 6 deletions

View file

@ -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);