Server based Gallery

This commit is contained in:
tmshv committed 2017-05-25 21:49:40 +03:00
1 parent 3a6440e5b0
commit 2aa46f3d04
6 files changed
+83 -76

No files matched your search

+2
View File
@@ -23,6 +23,7 @@ const error = require('./middlewares/error')
const home = require('./routes/home')
const article = require('./routes/articles')
const albums = require('./routes/albums')
const gallery = require('./routes/gallery')
const dirPublic = path.join(__dirname, '../public')
const dirTemplates = path.join(__dirname, 'templates')
@@ -53,6 +54,7 @@ export default function (store) {
app.use(error.notFound(config.view404))
app.use(home.getHome(5))
app.use(gallery.getGallery())
app.use(article.getArticles(5))
app.use(article.getArticle())
app.use(albums.getAlbum())