diff --git a/src/index.js b/src/index.js index 04cce6d224a9c85c7c8611dc39baef5240a40a89..207338d7ba7cc36aa8cc7b13d87aab960333aaf2 100644 --- a/src/index.js +++ b/src/index.js @@ -4,11 +4,11 @@ */ import server from './server'; import colors from 'colors'; -import router from './admin_view/admin_router'; +import router from './routing/admin_router'; import passport from 'passport'; // setting up l'interface admin des BDD -server.use('/adminview',router); // catches and resolves HTTP requests to paths '/adminview/*' +server.use('/',router); // catches and resolves HTTP requests to paths '/adminview/*' // gere les requetes de login du front server.post('/login', diff --git a/src/admin_view/admin_router.js b/src/routing/admin_router.js similarity index 100% rename from src/admin_view/admin_router.js rename to src/routing/admin_router.js