summaryrefslogtreecommitdiffstats
path: root/server/router.js
diff options
context:
space:
mode:
authorJannik Schönartz2019-02-22 02:59:26 +0100
committerJannik Schönartz2019-02-22 02:59:26 +0100
commit892a048d072d05886951bcb92e6b61c2094a6463 (patch)
tree2ff89b4d69c829304f55d529203eed985aaac413 /server/router.js
parentrework user api to rest (diff)
downloadbas-892a048d072d05886951bcb92e6b61c2094a6463.tar.gz
bas-892a048d072d05886951bcb92e6b61c2094a6463.tar.xz
bas-892a048d072d05886951bcb92e6b61c2094a6463.zip
[authentication] Implement initial root account setup
[backend] Reworked authentication library to the api structure Add authentication api to remove the login routes from the router.js [webapp] Split login Page in StartPage + Login/Setup Add Setup Page for the initial root creation
Diffstat (limited to 'server/router.js')
-rw-r--r--server/router.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/server/router.js b/server/router.js
index 1eadc48..b00f164 100644
--- a/server/router.js
+++ b/server/router.js
@@ -3,14 +3,7 @@ var router = express.Router()
var path = require('path')
var fs = require('fs')
var permUtil = require(path.join(__dirname, 'lib', 'permissions', 'permissionutil'))
-
-// Authentication routes
var auth = require(path.join(__dirname, 'lib', 'authentication'))
-router.get('/auth', auth.auth)
-router.post('/login', auth.login)
-router.post('/signup', auth.signup)
-router.post('/logout', auth.logout)
-router.post('/changepassword', auth.changePassword)
// Forward routing to every api module with /<api>/...
fs.readdirSync(path.join(__dirname, 'api')).forEach(filename => {