From d7ed1196bdd44d7734d41d91a5e72a71785e0a08 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 5 Jan 2023 02:09:07 +0100 Subject: switched to single quotes string in eslint --- routes/root.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'routes/root.js') diff --git a/routes/root.js b/routes/root.js index 863b99d..ee63748 100644 --- a/routes/root.js +++ b/routes/root.js @@ -1,18 +1,18 @@ -import express from "express"; +import express from 'express'; -import { login_get, login_post } from "../controllers/root/login.js"; -import { logout_get } from "../controllers/root/logout.js"; -import { root_get } from "../controllers/root/root.js"; -import bodyParser from "../middlewares/formParser.js"; -import session from "../middlewares/sessions.js"; -import { checkUsername, checkPassword } from "../utils/checks.js"; +import { login_get, login_post } from '../controllers/root/login.js'; +import { logout_get } from '../controllers/root/logout.js'; +import { root_get } from '../controllers/root/root.js'; +import bodyParser from '../middlewares/formParser.js'; +import session from '../middlewares/sessions.js'; +import { checkUsername, checkPassword } from '../utils/checks.js'; const router = express.Router(); router.use(session); -router.get("/", root_get); -router.get("/login", login_get); -router.post("/login", [bodyParser, checkUsername, checkPassword], login_post); -router.get("/logout", logout_get); +router.get('/', root_get); +router.get('/login', login_get); +router.post('/login', [bodyParser, checkUsername, checkPassword], login_post); +router.get('/logout', logout_get); export default router; -- cgit v1.2.3