-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17fe926
commit 002f365
Showing
30 changed files
with
567 additions
and
593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
import ( | ||
"embed" | ||
"io/fs" | ||
"net/http" | ||
) | ||
|
||
//go:embed templatizer-ui/build | ||
var content embed.FS | ||
|
||
func clientHandler() http.Handler { | ||
fsys := fs.FS(content) | ||
contentStatic, _ := fs.Sub(fsys, "templatizer-ui/build") | ||
return http.FileServer(http.FS(contentStatic)) | ||
} | ||
|
||
func main() { | ||
mux := http.NewServeMux() | ||
mux.Handle("/", clientHandler()) | ||
http.ListenAndServe(":3000", mux) | ||
} |
Submodule templatizer-ui
added at
3c94d5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
import "github.com/wesovilabs/templatizer/pkg/api" | ||
|
||
const ( | ||
localAddress = ":5001" | ||
basePath = "/api" | ||
) | ||
|
||
func main() { | ||
router := api.SetUpRouter(basePath) | ||
router.Run(localAddress) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule client
added at
3c94d5
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.