797ace982f
Done so far Basic backend skeleton - technology choices - database migration outline - basic self hosting facade - basic REST outline - proof of concept for auth and privileges Basic frontend skeleton - technology choices - pretty robust frontend compilation - top navigation - proof of concept for registration form
25 lines
538 B
JavaScript
25 lines
538 B
JavaScript
'use strict';
|
|
|
|
class PostsController {
|
|
constructor(topNavigationController) {
|
|
this.topNavigationController = topNavigationController;
|
|
}
|
|
|
|
uploadPostsRoute() {
|
|
this.topNavigationController.activate('upload');
|
|
}
|
|
|
|
listPostsRoute() {
|
|
this.topNavigationController.activate('posts');
|
|
}
|
|
|
|
showPostRoute(id) {
|
|
this.topNavigationController.activate('posts');
|
|
}
|
|
|
|
editPostRoute(id) {
|
|
this.topNavigationController.activate('posts');
|
|
}
|
|
}
|
|
|
|
module.exports = PostsController;
|