2016-03-19 21:37:04 +01:00
|
|
|
'use strict';
|
|
|
|
|
2016-04-01 00:20:34 +02:00
|
|
|
const topNavController = require('../controllers/top_nav_controller.js');
|
2016-03-19 21:37:04 +01:00
|
|
|
|
2016-04-01 00:20:34 +02:00
|
|
|
class PostsController {
|
2016-03-19 21:37:04 +01:00
|
|
|
uploadPostsRoute() {
|
2016-04-01 00:20:34 +02:00
|
|
|
topNavController.activate('upload');
|
2016-03-19 21:37:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
listPostsRoute() {
|
2016-04-01 00:20:34 +02:00
|
|
|
topNavController.activate('posts');
|
2016-03-19 21:37:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
showPostRoute(id) {
|
2016-04-01 00:20:34 +02:00
|
|
|
topNavController.activate('posts');
|
2016-03-19 21:37:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
editPostRoute(id) {
|
2016-04-01 00:20:34 +02:00
|
|
|
topNavController.activate('posts');
|
2016-03-19 21:37:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-01 00:20:34 +02:00
|
|
|
module.exports = new PostsController();
|