mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 23:40:25 +00:00
fix(modules): load i18n
This commit is contained in:
parent
304beb6482
commit
c2aed860db
1 changed files with 1 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ var express = require('express');
|
|||
var router = new express.Router();
|
||||
var auth = require('../controllers/auth');
|
||||
var coupon = require('../controllers/coupon');
|
||||
var i18n = require('../i18n');
|
||||
|
||||
router.get('/api/v2/coupons', auth.authWithUrl, i18n.getUserLanguage, coupon.ensureAdmin, coupon.getCoupons);
|
||||
router.post('/api/v2/coupons/generate/:event', auth.auth, i18n.getUserLanguage, coupon.ensureAdmin, coupon.generateCoupons);
|
||||
|
|
|
|||
Loading…
Reference in a new issue