🐛 Fix put request

This commit is contained in:
2022-10-11 15:43:39 +02:00
parent b9cda51c0f
commit 81786f6b27

View File

@ -35,7 +35,7 @@ pub fn (mut app App) kv_get(key string) vweb.Result {
return app.not_found()
}
['/set/:key'; post]
['/set/:key'; put]
fn (mut app App) kv_set(key string) vweb.Result {
lock app.state {
app.state.kv_store[key] = app.req.data