[INIT] Initial Project Structure
This commit is contained in:
commit
0fc5f05b6a
105 changed files with 10448 additions and 0 deletions
15
lib/vix/AppRouter.ts
Normal file
15
lib/vix/AppRouter.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import "express-async-errors";
|
||||
import config from "@lib/config";
|
||||
import { VixpressRouter } from "@dunemask/vix";
|
||||
import { AuthRoute } from "@lib/modules/auth/auth.router";
|
||||
import { ProjectRoute } from "@lib/modules/projects/project.router";
|
||||
|
||||
export default class AppRouter extends VixpressRouter {
|
||||
protected routerImportUrl = import.meta.url; // Used to configure the relative static route
|
||||
protected baseUrl = config.Server.basePath; // Path for static assets
|
||||
async configureRoutes() {
|
||||
// API Routes go here:
|
||||
await this.useRoute("/api/:project/auth", AuthRoute);
|
||||
await this.useRoute("/api/:project", ProjectRoute);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue