Add comments

This commit is contained in:
D. Berge
2023-11-02 23:51:53 +01:00
parent 4a18cb8a81
commit 68bf853594

View File

@@ -64,7 +64,10 @@ const allMeta = (key, value) => {
return { all: [ meta(key, value) ] }; return { all: [ meta(key, value) ] };
}; };
// These routes do not require authentication //
// NOTICE These routes do not require authentication
//
app.map({ app.map({
'*': { all: [ meta() ] }, // Create the req.meta object '*': { all: [ meta() ] }, // Create the req.meta object
'/login': { '/login': {
@@ -82,6 +85,9 @@ app.map({
} }
}); });
//
// WARNING Every route from here onwards requires authentication!
//
app.use(mw.auth.authentify); app.use(mw.auth.authentify);
// Don't process the request if the data hasn't changed // Don't process the request if the data hasn't changed