mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 04:26:23 +02:00
Initial commit 🍀
This commit is contained in:
13
src/web/meta.ts
Normal file
13
src/web/meta.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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`
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user