19 lines
459 B
Go
19 lines
459 B
Go
package api
|
|
|
|
import (
|
|
"github.com/go-chi/chi/v5"
|
|
|
|
"git.gophernest.net/azpect/ResumeLens/internal/handlers"
|
|
)
|
|
|
|
// Mount registers all API routes onto the provided router.
|
|
// Trace: SDD_LLD_0005 - Provide HTTP handler and endpoint for form data uploads
|
|
func Mount(r chi.Router) {
|
|
r.Use(CORS)
|
|
|
|
r.Route("/api", func(r chi.Router) {
|
|
// Trace: SDD_LLD_0005 - HTTP endpoint that accepts multipart/form data uploads
|
|
r.Post("/analyze", handlers.Analyze)
|
|
})
|
|
}
|