Fix, placeholder image, api
Added a placeholder image, code style Fixed metadata missing issue More work on api
This commit is contained in:
parent
529d106351
commit
0e036b152b
8 changed files with 192 additions and 94 deletions
|
@ -5,6 +5,7 @@ import "net/http"
|
|||
func setupLinstromApiRouter() http.Handler {
|
||||
router := http.NewServeMux()
|
||||
router.Handle("/v1/", http.StripPrefix("/v1", setupLinstromApiV1Router()))
|
||||
router.Handle("/s2s/v1/", http.StripPrefix("/s2s/v1", setupLinstromS2SApiV1Router()))
|
||||
|
||||
return router
|
||||
}
|
||||
|
@ -93,3 +94,10 @@ func setupLinstromApiV1Router() http.Handler {
|
|||
|
||||
return router
|
||||
}
|
||||
|
||||
func setupLinstromS2SApiV1Router() http.Handler {
|
||||
router := http.NewServeMux()
|
||||
// TODO: Figure out a decent server to server API definition
|
||||
router.HandleFunc("/", placeholderEndpoint)
|
||||
return router
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue