blob: 41bba8c0bdcf8a7c5d70cf6061896dcce586285a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import * as express from 'express';
import 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}/../../`
});
};
|