You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
460 B
Go
20 lines
460 B
Go
package routes
|
|
|
|
import "git.phc.dm.unipi.it/phc/cluster-dashboard/backend/database"
|
|
|
|
// Router is the main service that defines all routes, this only depends on the Database service
|
|
type Router struct {
|
|
Database database.Database
|
|
}
|
|
|
|
type htmlEntrypoint struct {
|
|
Route string `json:"route"`
|
|
Filename string `json:"filename"`
|
|
}
|
|
|
|
var HtmlEntrypoints = []htmlEntrypoint{
|
|
{"/", "./index.html"},
|
|
{"/dashboard", "./index.html"},
|
|
{"/jobs", "./index.html"},
|
|
}
|