Article server based

Required Sync changes!
This commit is contained in:
tmshv committed 2017-05-22 04:50:34 +03:00
1 parent 6acb7ba64d
commit be84058aba
18 files changed
+475 -114

No files matched your search

+5
View File
@@ -21,6 +21,8 @@ import handlebars from 'handlebars'
const config = require('./config')
const error = require('./middlewares/error')
const home = require('./routes/home')
const article = require('./routes/articles')
const dirPublic = path.join(__dirname, '../public')
const dirTemplates = path.join(__dirname, 'templates')
@@ -52,6 +54,9 @@ export default function (store) {
app.use(queryObject())
app.use(error.notFound(config.view404))
app.use(home.getHome(5))
app.use(article.getArticles(5))
app.use(article.getArticle())
app.use(routes(store))
return Server(app.callback())