mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 17:56:43 -06:00
13 lines
289 B
TypeScript
13 lines
289 B
TypeScript
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}/../../`
|
|
});
|
|
};
|