Encrypted messaging app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
349 B

  1. package main
  2. import (
  3. "net/http"
  4. "git.tovijaeschke.xyz/tovi/Envelope/Backend/Api"
  5. "git.tovijaeschke.xyz/tovi/Envelope/Backend/Database"
  6. "github.com/gorilla/mux"
  7. )
  8. func init() {
  9. Database.Init()
  10. }
  11. func main() {
  12. var (
  13. router *mux.Router
  14. )
  15. router = mux.NewRouter()
  16. Api.InitApiEndpoints(router)
  17. http.ListenAndServe(":8080", router)
  18. }