2016-06-13 23:10:53 +02:00
|
|
|
'use strict';
|
|
|
|
|
2016-06-14 10:31:48 +02:00
|
|
|
const topNavigation = require('../models/top_navigation.js');
|
2016-06-13 23:10:53 +02:00
|
|
|
const EmptyView = require('../views/empty_view.js');
|
|
|
|
|
|
|
|
class PostUploadController {
|
|
|
|
constructor() {
|
2016-06-14 10:31:48 +02:00
|
|
|
topNavigation.activate('upload');
|
2016-07-13 21:50:07 +02:00
|
|
|
topNavigation.setTitle('Upload');
|
2016-06-13 23:10:53 +02:00
|
|
|
this._emptyView = new EmptyView();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-14 10:31:48 +02:00
|
|
|
module.exports = router => {
|
|
|
|
router.enter('/upload', (ctx, next) => {
|
|
|
|
ctx.controller = new PostUploadController();
|
|
|
|
});
|
|
|
|
};
|