Web API for code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. import {ServerInstance} from '../../packages/fastify-utils-theoryofnekomata';
  2. import {UserControllerImpl, UserController} from './User.controller';
  3. export const addRoutes = (server: ServerInstance) => {
  4. const userController: UserController = new UserControllerImpl()
  5. server.route({
  6. method: 'POST',
  7. url: '/api/users/register',
  8. handler: userController.register,
  9. });
  10. }