import resty, { Controller, Get } from "@restyjs/core";
import { Database } from "@restyjs/typeorm";
@Controller("/")
class HelloController {
@Get("/", [])
index() {
return "Hello World";
}
}
const app = resty({
controllers: [HelloController],
providers: [
Database({
type: "sqlite",
database: "example.db",
entities: [],
}),
],
});
app.listen(8080);
This repository has been archived by the owner on Dec 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
TypeORM module for resty.js
License
restyjs-graveyard/typeorm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
TypeORM module for resty.js