Organized the differences between server and docker versions.
We are launching a docker version (server version) today so we want to just organize the repo so its easier to navigate.
This commit is contained in:
17
desktop/src/api/user/user.routes.ts
Normal file
17
desktop/src/api/user/user.routes.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { FastifyInstance } from 'fastify';
|
||||
import * as controller from './user.controller';
|
||||
|
||||
async function userRoutes(fastify: FastifyInstance) {
|
||||
fastify.get('/me',controller.getMe);
|
||||
fastify.post("/login", controller.login);
|
||||
fastify.get('/users', controller.getAllUsers);
|
||||
fastify.post('/users', { bodyLimit: 1024 * 1024 * 50 }, controller.createUser);
|
||||
fastify.get('/users/:id', controller.getUser);
|
||||
fastify.put('/users/:id', { bodyLimit: 1024 * 1024 * 50 }, controller.updateUser);
|
||||
fastify.delete('/users/:id', controller.deleteUser);
|
||||
fastify.get('/users/:id/integration', controller.getIntegrationStatus);
|
||||
fastify.delete('/users/:id/integration', controller.disconnectAniList);
|
||||
fastify.put('/users/:id/password', controller.changePassword);
|
||||
}
|
||||
|
||||
export default userRoutes;
|
||||
Reference in New Issue
Block a user