lot of new functionalities

This commit is contained in:
Arnaud Delcasse
2025-10-14 18:11:13 +02:00
parent a6f70a6e85
commit d992a7984f
164 changed files with 15113 additions and 9442 deletions

14
servers/web/api_routes.go Normal file
View File

@@ -0,0 +1,14 @@
package web
import (
"github.com/gorilla/mux"
)
func (ws *WebServer) setupAPIRoutes(r *mux.Router) {
api_router := r.PathPrefix("/api").Subrouter()
api_router.HandleFunc("/", ws.webAPIHandler.NotFound)
api_router.HandleFunc("/geo/autocomplete", ws.webAPIHandler.GeoAutocomplete)
api_router.HandleFunc("/cache/{cacheid}", ws.webAPIHandler.GetCache)
api_router.HandleFunc("/cache/{cacheid}/export", ws.webAPIHandler.CacheExport)
api_router.HandleFunc("/oauth2/callback", ws.webAPIHandler.OAuth2Callback)
}