Upload All

This commit is contained in:
Alan
2018-02-26 14:09:18 +08:00
parent 42d3a3fc46
commit 46257f08b0
1024 changed files with 204324 additions and 0 deletions

View File

@ -0,0 +1,20 @@
var PaintingSpotlight = require("../mongooseSchemas/PaintingSpotlight");
/**
* 取得首頁的插值資料。
* @param {BasicLayout} renderData 插值物件。
* @param {string} route 路由路徑。
* @param {Express.Session} session Express的Session物件。
* @param {CallbackFunction} callback 回呼函式。
*/
function IndexRender(renderData, route, session, callback) {
PaintingSpotlight.GetCarouselInfo("index", function (err, infos) {
if (err) {
callback(err, null);
}
else {
renderData.datas = infos;
callback(null, true);
}
});
}
module.exports.Render = IndexRender;