mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-20 17:48:11 +09:00
14 lines
296 B
TypeScript
14 lines
296 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}/../../misskey`
|
||
|
});
|
||
|
};
|