Initial commit 🍀
This commit is contained in:
commit
b3f42e62af
405 changed files with 31017 additions and 0 deletions
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`
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue