project-layout
project-layout copied to clipboard
where put paths and router to make an API
where put paths and router to make an API in this arquitecture
I want to know that
I think in /internal, because it is unlikely that the same endpoints will be used in other projects
how about put it on :
/internal/server/rest/server.go for rest http
/internal/server/graphql/server.go for graphql
/internal/server/grpc/server.go for grpc
Exactly what I mean
It could also be:
/internal/api/rest/server.go
/internal/api/graphql/server.go
/internal/api/grpc/server.go