/album -> /gallery

This commit is contained in:
tmshv committed 2015-07-09 05:32:52 +03:00
1 parent eb2aa6d4cf
commit 900f1d4e33
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -41,7 +41,7 @@ module.exports = function (app) {
}
})));
app.use(route.get("/album/:year/:course/:album", router.accepts({
app.use(route.get("/gallery/:year/:course/:album", router.accepts({
"text/html": router.index(),
"text/plain": router.index(),
"application/json": function *(year, course, album) {
@@ -65,7 +65,7 @@ module.exports = function (app) {
function processAlbum(album) {
return co(function *() {
album.url = '/album/{year}{course}{album}'
album.url = '/gallery/{year}{course}{album}'
.replace('{year}', album.date.getFullYear())
.replace('{course}', album.course_uri)
.replace('{album}', album.uri);