add all old routes and handlers

add html index page when not authenticated
fixed auth's handling of empty permissions
This commit is contained in:
Jakob Schrettenbrunner
2017-08-02 22:02:34 +02:00
parent 3a65f409d1
commit 059ea8a047
10 changed files with 298 additions and 3 deletions

29
constants/index_page.go Normal file
View File

@@ -0,0 +1,29 @@
package constants
const IndexPage = `
<!doctype html>
<html>
<head>
<title>Pterodactly wings</title>
<style>
body {
background: #222;
color: #074cd5;
}
pre {
margin: auto;
}
</style
</head>
<body>
<pre>
____
__ Pterodactyl _____/___/_______ _______ ______
\_____\ \/\/ / / / __ / ___/
\___\ / / / / /_/ /___ /
\___/\___/___/___/___/___ /______/
/_______/
</pre>
</body>
</html>
`