You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
323 B
20 lines
323 B
package api
|
|
|
|
import (
|
|
"log"
|
|
"time"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func Setup(app *fiber.App) {
|
|
// this forces static pages to reload
|
|
app.Static("/", "./public", fiber.Static{
|
|
Compress: false,
|
|
CacheDuration: 1 * time.Nanosecond,
|
|
})
|
|
}
|
|
|
|
func Shutdown() {
|
|
log.Println("Shutting down controllers...")
|
|
}
|
|
|