zh-hant.js 2.27 KB
var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('zh-hant/index', {});
});

router.get('/index.html', function(req, res, next) {
  res.render('zh-hant/index', {});
});

router.get('/about.html', function(req, res, next) {
  res.render('zh-hant/about', {});
});

router.get('/cases.html', function(req, res, next) {
  res.render('zh-hant/cases', {});
});

router.get('/successful-stories.html', function(req, res, next) {
  res.render('zh-hant/successful-stories', {});
});

router.get('/contact.html', function(req, res, next) {
  res.render('zh-hant/contact', {});
});

router.get('/adobe-experience-manager-aem.html', function(req, res, next) {
  res.render('zh-hant/product_aem', {});
});

router.get('/adobe-analytics.html', function(req, res, next) {
  res.render('zh-hant/product_aa', {});
});

router.get('/adobe-audience-manager.html', function(req, res, next) {
  res.render('zh-hant/product_aam', {});
});

router.get('/adobe-target.html', function(req, res, next) {
  res.render('zh-hant/product_at', {});
});

router.get('/adobe-campaign.html', function(req, res, next) {
  res.render('zh-hant/product_ac', {});
});

router.get('/adobe-experience-cloud.html', function(req, res, next) {
  res.render('zh-hant/product_aec', {});
});

router.get('/aem-wechat.html', function(req, res, next) {
  res.render('zh-hant/product_weixin', {});
});

router.get('/ac-wechat.html', function(req, res, next) {
  res.render('zh-hant/product_acw', {});
});

router.get('/adobe-advertising-cloud.html', function(req, res, next) {
  res.render('zh-hant/product_aac', {});
});

router.get('/adobe-commerce-cloud.html', function(req, res, next) {
  res.render('zh-hant/product_acc', {});
});
router.get('/adobe-experience-platform.html', function(req, res, next) {
    res.render('zh-hant/product_aep', {});
});
router.get('/adobe-marketo-engage.html', function(req, res, next) {
  res.render('zh-hant/product_ame', {});
});

router.get('/magnolia.html', function(req, res, next) {
  res.render('zh-hant/product_mhc', {});
});

router.get('*', function(req, res, next) {
    var url = req.url;
    if (url.startsWith("/api/getCaptcha")) {
        next();
    } else{
        res.render('zh-hant/404', {});
    }
});

module.exports = router;