mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
fixed ajaxify bug introduced in last commit
This commit is contained in:
@@ -102,8 +102,6 @@ function getRecentPosts(req, res, next) {
|
|||||||
|
|
||||||
module.exports = function(app, middleware, controllers) {
|
module.exports = function(app, middleware, controllers) {
|
||||||
app.namespace('/api', function () {
|
app.namespace('/api', function () {
|
||||||
app.all('*', middleware.updateLastOnlineTime, middleware.prepareAPI);
|
|
||||||
|
|
||||||
app.get('/config', controllers.api.getConfig);
|
app.get('/config', controllers.api.getConfig);
|
||||||
|
|
||||||
app.get('/user/uid/:uid', middleware.checkGlobalPrivacySettings, controllers.accounts.getUserByUID);
|
app.get('/user/uid/:uid', middleware.checkGlobalPrivacySettings, controllers.accounts.getUserByUID);
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ module.exports = function(app, middleware) {
|
|||||||
adminRoutes(app, middleware, controllers);
|
adminRoutes(app, middleware, controllers);
|
||||||
|
|
||||||
plugins.ready(function() {
|
plugins.ready(function() {
|
||||||
|
app.all('/api/*', middleware.updateLastOnlineTime, middleware.prepareAPI);
|
||||||
plugins.fireHook('action:app.load', app, middleware, controllers);
|
plugins.fireHook('action:app.load', app, middleware, controllers);
|
||||||
|
|
||||||
metaRoutes(app, middleware, controllers);
|
metaRoutes(app, middleware, controllers);
|
||||||
|
|||||||
Reference in New Issue
Block a user