Sharkey/src/web/meta.ts

14 lines
296 B
TypeScript
Raw Normal View History

2016-12-29 00:49:51 +02:00
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`
});
};