|
|
|
@ -7,7 +7,7 @@ module.exports = function (app, middleware, controllers) {
|
|
|
|
|
var middlewares = [middleware.checkGlobalPrivacySettings];
|
|
|
|
|
var accountMiddlewares = [middleware.checkGlobalPrivacySettings, middleware.checkAccountPermissions];
|
|
|
|
|
|
|
|
|
|
setupPageRoute(app, '/uid/:uid/:section?', middleware, [], middleware.redirectUidToUserslug);
|
|
|
|
|
setupPageRoute(app, '/uid/:uid/:section1?/:section2?', middleware, [], middleware.redirectUidToUserslug);
|
|
|
|
|
|
|
|
|
|
setupPageRoute(app, '/user/:userslug', middleware, middlewares, controllers.accounts.profile.get);
|
|
|
|
|
setupPageRoute(app, '/user/:userslug/following', middleware, middlewares, controllers.accounts.follow.getFollowing);
|
|
|
|
|