monkeeShark/src/web/meta.ts

14 lines
290 B
TypeScript
Raw Normal View History

2016-12-28 22:49:51 +00:00
import * as express from 'express';
2017-01-02 21:03:19 +00:00
import git = require('git-last-commit');
2016-12-28 22:49:51 +00:00
module.exports = async (req: express.Request, res: express.Response) => {
// Get commit info
git.getLastCommit((err, commit) => {
res.send({
commit: commit
});
}, {
2016-12-28 23:05:27 +00:00
dst: `${__dirname}/../../`
2016-12-28 22:49:51 +00:00
});
};