Who knows what happens next...
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-05 18:14:20 -04:00
parent 995dd9a015
commit 42f091489e
11 changed files with 100 additions and 31 deletions

View File

@@ -11,6 +11,12 @@ import { ErrorCodes, getErrorBody } from '../../constants/errors';
const routerOpts: Router.IRouterOptions = { prefix };
const router: Router = new Router(routerOpts);
router.get('/info', (ctx) => {
ctx.body = {
service: process.env.SERVICE_NAME,
};
});
router.post('/', async (ctx) => {
const data = (await Auth.create(ctx.body)).save();
ctx.body = { success: true, data: { ...data, strategies: undefined } };