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