All the pages are working again, but Alpine is insanely frustrating.
This commit is contained in:
parent
81cf5e0d93
commit
7125bc2d2a
15 changed files with 95 additions and 40 deletions
|
@ -159,19 +159,15 @@ func GetPageAdminIndex(c *fiber.Ctx) error {
|
|||
|
||||
func Setup(app *fiber.App) {
|
||||
app.Get("/admin/table/", GetPageAdminIndex)
|
||||
app.Get("/api/admin/table/", GetApiTableIndex)
|
||||
|
||||
app.Get("/api/admin/table/:table/", GetApiSelectAll)
|
||||
app.Get("/admin/table/:table/", GetPageSelectAll)
|
||||
|
||||
app.Get("/admin/new/table/:table/", GetPageInsert)
|
||||
app.Get("/api/admin/new/table/:table/", GetApiInsert)
|
||||
app.Post("/api/admin/new/table/:table/", PostApiInsert)
|
||||
|
||||
app.Get("/api/admin/table/:table/:id/", GetApiSelectOne)
|
||||
app.Get("/admin/table/:table/:id/", GetPageSelectOne)
|
||||
|
||||
app.Post("/api/admin/table/:table/:id/", PostApiUpdate)
|
||||
|
||||
app.Delete("/api/admin/table/:table/:id/", DeleteApi)
|
||||
app.Get("/api/admin/table", GetApiTableIndex)
|
||||
app.Get("/api/admin/table/:table", GetApiSelectAll)
|
||||
app.Get("/api/admin/new/table/:table", GetApiInsert)
|
||||
app.Post("/api/admin/new/table/:table", PostApiInsert)
|
||||
app.Get("/api/admin/table/:table/:id", GetApiSelectOne)
|
||||
app.Post("/api/admin/table/:table/:id", PostApiUpdate)
|
||||
app.Delete("/api/admin/table/:table/:id", DeleteApi)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue