Posts

This commit is contained in:
2024-02-02 23:42:42 +08:00
parent 19e1775476
commit 89521c15af
20 changed files with 426 additions and 62 deletions

View File

@ -61,6 +61,9 @@ func NewServer() {
api.Get("/auth", doLogin)
api.Get("/auth/callback", doPostLogin)
api.Post("/auth/refresh", doRefreshToken)
api.Get("/posts", listPost)
api.Post("/posts", auth, createPost)
}
A.Use("/", cache.New(cache.Config{