-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api) deactivate some /server_names endpoints, add specs
- Loading branch information
Showing
3 changed files
with
163 additions
and
126 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,16 @@ | ||
local function method_not_allowed(self, db, helpers) | ||
return helpers.responses.send_HTTP_METHOD_NOT_ALLOWED() | ||
end | ||
|
||
return { | ||
-- GET / PATCH / DELETE /server_names/server_name are the only methods allowed | ||
|
||
["/server_names"] = { | ||
before = method_not_allowed, | ||
}, | ||
|
||
["/server_names/:server_names/certificate"] = { | ||
before = method_not_allowed, | ||
}, | ||
|
||
} |
Oops, something went wrong.