1
0
Fork 1
mirror of https://example.com synced 2024-11-27 00:56:41 +09:00
firefish/src/web/meta.ts
2016-12-29 08:05:27 +09:00

13 lines
289 B
TypeScript

import * as express from 'express';
const git = require('git-last-commit');
module.exports = async (req: express.Request, res: express.Response) => {
// Get commit info
git.getLastCommit((err, commit) => {
res.send({
commit: commit
});
}, {
dst: `${__dirname}/../../`
});
};