add fixes

This commit is contained in:
2024-01-24 17:40:20 +05:30
parent 3cd5c4c471
commit b5c28dd288
3 changed files with 2 additions and 2 deletions

View File

@@ -456,6 +456,7 @@ object ProductCtrl {
fun create(ctx :Context){
val product = ctx.bodyAsClass<Product>()
database.save(product)
ctx.json(product).status(HttpStatus.CREATED)
}
fun delete(ctx: Context) {