p5.js-web-editor/server/routes/session.routes.js

12 lines
330 B
JavaScript

import { Router } from 'express';
import * as SessionController from '../controllers/session.controller';
const router = new Router();
router.post('/login', SessionController.createSession);
router.get('/session', SessionController.getSession);
router.get('/logout', SessionController.destroySession);
export default router;