mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-04 01:09:27 +02:00
add API JWT auth.
This commit is contained in:
parent
31bd61e2d3
commit
71d39a5c74
5 changed files with 73 additions and 17 deletions
|
@ -39,7 +39,7 @@ func New(
|
|||
router.Use(Logger) // Log API request calls using custom logger function
|
||||
|
||||
// Mount REST API
|
||||
apiManager := api.New(sessions, remote, broadcast, webSocketHandler)
|
||||
apiManager := api.New(sessions, remote, broadcast, webSocketHandler, conf)
|
||||
apiManager.Mount(router)
|
||||
|
||||
router.Get("/ws", func(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue