blob: 8f04f65926628556fa07c49472898dd78786d3bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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}/../../`
});
};
|