refactor(web): make a separate auth middlewares for server
also slightly change api auth middleware
This commit is contained in:
@@ -20,7 +20,7 @@ func Serve(addr string) {
|
||||
|
||||
r.Static("/static", "./static")
|
||||
r.GET("/", api.MiddlewareAuth, root)
|
||||
r.GET("/quotes", api.MiddlewareAuth, quotes)
|
||||
r.GET("/quotes", api.MiddlewareAuth, middlewareAuth, quotes)
|
||||
|
||||
r.Run(addr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user