You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
373 B
16 lines
373 B
import { formatResponse } from "utils/helper.js"
|
|
|
|
export const status = async (ctx) => {
|
|
ctx.body = "OK"
|
|
}
|
|
|
|
import Router from "utils/router.js"
|
|
export function createRoutes() {
|
|
const v1 = new Router({ prefix: "/api/v1" })
|
|
v1.use((ctx, next) => {
|
|
ctx.set("X-API-Version", "v1")
|
|
return next()
|
|
})
|
|
v1.get("/status", status)
|
|
return v1
|
|
}
|
|
|