mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-07-16 00:44:40 +00:00
Finally, tell Express to include the stats API route for stats
This commit is contained in:
parent
4b314a147d
commit
bc8a49fbe9
1 changed files with 2 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import api_auth from './authentication.js'
|
||||||
import api_user from './user.js'
|
import api_user from './user.js'
|
||||||
import api_info from './info.js'
|
import api_info from './info.js'
|
||||||
import api_admin from './admin.js'
|
import api_admin from './admin.js'
|
||||||
|
import api_stats from './stats.js'
|
||||||
|
|
||||||
const VERSION = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
|
const VERSION = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
|
||||||
const api = express.Router();
|
const api = express.Router();
|
||||||
|
|
@ -23,6 +24,7 @@ api.use(bodyParser.urlencoded({ extended: true }));
|
||||||
|
|
||||||
api.use(api_auth)
|
api.use(api_auth)
|
||||||
api.use(api_info)
|
api.use(api_info)
|
||||||
|
api.use(api_stats)
|
||||||
|
|
||||||
// These calls are gated within their respective routers
|
// These calls are gated within their respective routers
|
||||||
api.use(api_user)
|
api.use(api_user)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue