feat: github projects route

This commit is contained in:
trafficlunar 2025-05-03 16:09:46 +01:00
parent a1f22391e9
commit a3eb6c6e32
7 changed files with 115 additions and 0 deletions

View file

@ -0,0 +1,12 @@
package handler
import (
"api/internal/worker"
"encoding/json"
"net/http"
)
func HandleGetProjects(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(worker.GitHubData)
}