mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
15 lines
339 B
JavaScript
15 lines
339 B
JavaScript
var express = require('express');
|
|
var config = require('../modules/config');
|
|
var router = express.Router();
|
|
|
|
/* GET home page. */
|
|
router.get('/', function(req, res) {
|
|
res.render('index', {
|
|
title: 'Crafatar',
|
|
domain: req.secure ? "https" : "http" + "://" + req.headers.host,
|
|
config: config
|
|
});
|
|
});
|
|
|
|
|
|
module.exports = router; |