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