|
@@ -2,7 +2,7 @@ import * as express from 'express';
|
|
|
import { AddressInfo } from "net";
|
|
import { AddressInfo } from "net";
|
|
|
import * as path from 'path';
|
|
import * as path from 'path';
|
|
|
import * as bodyParser from 'body-parser';
|
|
import * as bodyParser from 'body-parser';
|
|
|
-import route_category from './routes/category';
|
|
|
|
|
|
|
+import route_index from './routes/index';
|
|
|
import route_entity from './routes/entity';
|
|
import route_entity from './routes/entity';
|
|
|
import { route_login, route_logout } from './routes/login';
|
|
import { route_login, route_logout } from './routes/login';
|
|
|
import LDAPFactory from './src/ldapInterface';
|
|
import LDAPFactory from './src/ldapInterface';
|
|
@@ -35,7 +35,7 @@ app.use((req, res, next) => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
//app.use('/', route_index);
|
|
//app.use('/', route_index);
|
|
|
-app.use('/', route_category);
|
|
|
|
|
|
|
+app.use('/', route_index);
|
|
|
app.use('/entity', route_entity);
|
|
app.use('/entity', route_entity);
|
|
|
app.use('/login', route_login);
|
|
app.use('/login', route_login);
|
|
|
app.use('/logout', route_logout);
|
|
app.use('/logout', route_logout);
|
|
@@ -74,4 +74,4 @@ app.set('port', process.env.PORT || 3000);
|
|
|
|
|
|
|
|
const server = app.listen(app.get('port'), function () {
|
|
const server = app.listen(app.get('port'), function () {
|
|
|
debug(`Express server listening on port ${(server.address() as AddressInfo).port}`);
|
|
debug(`Express server listening on port ${(server.address() as AddressInfo).port}`);
|
|
|
-});
|
|
|
|
|
|
|
+});
|