Web API for code.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

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. }