mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 16:57:14 +01:00
13 lines
290 B
TypeScript
13 lines
290 B
TypeScript
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}/../../`
|
|
});
|
|
};
|