1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-05 07:50:23 +08:00
Files
paper-manager/backend/api/main.go
2023-03-16 14:03:58 +08:00

16 lines
285 B
Go

package api
import (
"net/http"
"github.com/fumiama/paper-manager/backend/utils"
)
// Handler serves all backend /api call
func Handler(w http.ResponseWriter, r *http.Request) {
if !utils.IsMethod("GET", w, r) {
return
}
http.Error(w, "404 Not Found", http.StatusNotFound)
}