2020-11-11 22:48:11 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.ddd.rip/ptrcnull/modweb"
|
2020-11-16 20:19:37 +00:00
|
|
|
discord_login "git.ddd.rip/ptrcnull/modweb/examples/test/discord-login"
|
2020-11-11 22:48:11 +00:00
|
|
|
helloworld "git.ddd.rip/ptrcnull/modweb/examples/test/hello-world"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
app := modweb.New(modweb.Config{
|
|
|
|
AppName: "Test App",
|
|
|
|
})
|
|
|
|
|
2020-11-16 20:19:37 +00:00
|
|
|
app.Register(&discord_login.Module{})
|
|
|
|
app.Register(&helloworld.Module{})
|
2020-11-11 22:48:11 +00:00
|
|
|
|
|
|
|
err := app.Run(":8011")
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|