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.
18 lines
502 B
18 lines
502 B
import authenticationController from '../controllers/authentication.controller.js'; |
|
import securityService from '../services/security.service.js'; |
|
|
|
const publicRoutes = async (app) => { |
|
app.get('/test', async (request, reply) => { |
|
request.log.debug(request.headers); |
|
reply.code(200).send({ success: true }); |
|
}); |
|
|
|
app.route({ |
|
method: 'POST', |
|
url: '/signin', |
|
preHandler: securityService.login, |
|
handler: authenticationController.signin |
|
}); |
|
}; |
|
|
|
export default publicRoutes;
|
|
|