mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
warning
This commit is contained in:
1 parent
f58a5d0bdc
commit
e625f297a1
1 file changed
+2
@@ -225,6 +225,8 @@ pub fn add_routes<T, B> (app: App<T>, server_environment: ServerEnvironment) ->
|
||||
// ==================== Prompts ====================
|
||||
|
||||
let mut app = RouteBuilder::from_app(app)
|
||||
// NB: This poor RouteBuilder utility requires that POST comes first, otherwise the GET glob
|
||||
// will capture it and force 504 Method Not Allowed for all POSTs.
|
||||
.add_post("/v1/prompts/create", create_prompt_handler)
|
||||
.add_get("/v1/prompts/{token}", get_prompt_handler)
|
||||
.into_app();
|
||||
|
||||
Reference in new issue
Block a user