started planning endpoints

This commit is contained in:
Ben
2018-09-05 22:10:22 +01:00
parent f19d1588b9
commit 299be3618d

View File

@@ -22,6 +22,18 @@ export class Router {
app.post('/unauth/permanote', [MiddleWare.RateLimits.request, Controllers.PermaLinkController.unauthentacatedPermaLink]);
app.get('/note/:endpoint', [MiddleWare.RateLimits.request, Controllers.PermaLinkController.getNote]);
app.post('/auth/note'); // Passes through auth middleware which if authenticated passes user obj and token to the note handling function for it to deal with
app.post('/aith/group');
app.get('/auth/getallnotes');
app.get('/auth/getallgroups');
app.post('/auth/movenote');
app.post('/auth/movegroup');
app.delete('/auth/deletenote');
app.delete('/auth/deletegroup');
app.get('*', [MiddleWare.RateLimits.request, StatusCodes.pageNotFound]);
Logger.info('HTTP endpoints settup');
}