mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-02-11 12:51:40 +00:00
fix some wierd spaces
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = function (app) {
|
||||
* Endpoint for fetching GitHub org public members
|
||||
*/
|
||||
|
||||
app.get('/members', cache('3 hours'), function(req, res, next) {
|
||||
app.get('/members', cache('3 hours'), function(req, res, next) {
|
||||
github.getMembers().then(function(data) {
|
||||
res.status(200).send(data);
|
||||
}, function(error) {
|
||||
@@ -22,7 +22,7 @@ module.exports = function (app) {
|
||||
* Endpoint for getting an invite to GitHub organization
|
||||
*/
|
||||
|
||||
app.post('/members', function(req, res, next) {
|
||||
app.post('/members', function(req, res, next) {
|
||||
if(!req.body.username) {
|
||||
return res.status(400).send('invalid_username');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user