2016-12-28 16:49:51 -06:00
|
|
|
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
|
|
|
|
});
|
|
|
|
}, {
|
2016-12-28 17:05:27 -06:00
|
|
|
dst: `${__dirname}/../../`
|
2016-12-28 16:49:51 -06:00
|
|
|
});
|
|
|
|
};
|