This commit is contained in:
syuilo
2017-03-18 02:24:14 +09:00
parent 45b2b2b196
commit b73eb710e4
5 changed files with 1 additions and 39 deletions

View File

@ -1,13 +0,0 @@
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}/../../`
});
};

View File

@ -47,7 +47,6 @@ app.use('/resources', express.static(`${__dirname}/resources`, {
/**
* Common API
*/
app.get(/\/api:meta/, require('./meta'));
app.get(/\/api:url/, require('./service/url-preview'));
app.post(/\/api:rss/, require('./service/rss-proxy'));