changed param logic & add more routes
This commit is contained in:
@@ -9,9 +9,10 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
path := routes.PathOf()
|
||||
routes.Register(func(app *fiber.App) {
|
||||
app.Get("/api/acdm/:userid", acdm)
|
||||
fmt.Println("Loaded: /api/acdm/:userid")
|
||||
app.Post(path, acdm)
|
||||
fmt.Println("Loaded:", path)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user