-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nino van Galen
committed
Apr 21, 2020
1 parent
8e1c15a
commit 57b64bb
Showing
4 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* This file is part of the ALICE Electronic Logbook v2, also known as Jiskefet. | ||
* Copyright (C) 2020 Stichting Hogeschool van Amsterdam | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* Get all overviews. | ||
* | ||
* @param {Object} request The *request* object represents the HTTP request and has properties for the request query | ||
* string, parameters, body, HTTP headers, and so on. | ||
* @param {Object} response The *response* object represents the HTTP response that an Express app sends when it gets an | ||
* HTTP request. | ||
* @param {Function} next The *next* object represents the next middleware function which is used to pass control to the | ||
* next middleware function. | ||
* @returns {undefined} | ||
*/ | ||
const index = (request, response, next) => { | ||
response.status(501).json({ | ||
errors: [ | ||
{ | ||
status: '501', | ||
title: 'Not implemented', | ||
}, | ||
], | ||
}); | ||
}; | ||
|
||
module.exports = { | ||
index, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* This file is part of the ALICE Electronic Logbook v2, also known as Jiskefet. | ||
* Copyright (C) 2020 Stichting Hogeschool van Amsterdam | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
const { OverviewsController } = require('../controllers'); | ||
|
||
module.exports = { | ||
method: 'get', | ||
path: '/overviews', | ||
controller: OverviewsController.index, | ||
args: { public: true }, | ||
}; |