szurubooru/client/js/controllers/post_upload_controller.js

18 lines
412 B
JavaScript
Raw Normal View History

2016-06-13 23:10:53 +02:00
'use strict';
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() {
topNavigation.activate('upload');
2016-06-13 23:10:53 +02:00
this._emptyView = new EmptyView();
}
}
module.exports = router => {
router.enter('/upload', (ctx, next) => {
ctx.controller = new PostUploadController();
});
};