mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-05 07:50:23 +08:00
16 lines
285 B
Go
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)
|
|
}
|