mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:37:07 +00:00
Don't require authentication for the /version endpoint.
It will still hide the `db` and `os` values from non-admins though.
This commit is contained in:
@@ -75,6 +75,9 @@ app.map({
|
||||
get: [ mw.user.logout ],
|
||||
post: [ mw.user.logout ]
|
||||
},
|
||||
'/version': {
|
||||
get: [ mw.version.get ]
|
||||
},
|
||||
'/': {
|
||||
get: [ mw.openapi.get ]
|
||||
}
|
||||
@@ -87,9 +90,6 @@ app.use(mw.etag.ifNoneMatch);
|
||||
|
||||
// We must be authenticated before we can access these
|
||||
app.map({
|
||||
'/version': {
|
||||
get: [ mw.version.get ]
|
||||
},
|
||||
'/project': {
|
||||
get: [ mw.project.get ], // Get list of projects
|
||||
post: [ mw.auth.access.admin, mw.project.post ], // Create a new project
|
||||
|
||||
Reference in New Issue
Block a user