🐛 Fix put request
This commit is contained in:
		@@ -35,7 +35,7 @@ pub fn (mut app App) kv_get(key string) vweb.Result {
 | 
				
			|||||||
	return app.not_found()
 | 
						return app.not_found()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
['/set/:key'; post]
 | 
					['/set/:key'; put]
 | 
				
			||||||
fn (mut app App) kv_set(key string) vweb.Result {
 | 
					fn (mut app App) kv_set(key string) vweb.Result {
 | 
				
			||||||
	lock app.state {
 | 
						lock app.state {
 | 
				
			||||||
		app.state.kv_store[key] = app.req.data
 | 
							app.state.kv_store[key] = app.req.data
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user