1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-13 14:18:22 +09:00
MisskeyIO/src/web/meta.ts
Aya Morisawa e52885bfe4
2017-01-03 06:03:19 +09:00

14 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}/../../`
});
};