-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
500 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
import { OpenAPIHono } from "@hono/zod-openapi" | ||
|
||
import SearchAssetRoute from "@/v2/routes/asset/search-assets" | ||
import GetAssetRoute from "@/v2/routes/asset/get-asset" | ||
|
||
import UploadAssetRoute from "@/v2/routes/asset/upload-asset" | ||
import ModifyAssetRoute from "@/v2/routes/asset/modify-asset" | ||
import DeleteAssetRoute from "@/v2/routes/asset/delete-asset" | ||
|
||
import LikeAssetByIdRoute from "@/v2/routes/asset/like-asset" | ||
import UnlikeAssetByIdRoute from "@/v2/routes/asset/unlike-asset" | ||
|
||
import GetAssetLikesRoute from "@/v2/routes/asset/get-asset-likes" | ||
import { GetAssetByIdRoute } from "./get-asset" | ||
import { LikeAssetByIdRoute } from "./like-asset" | ||
import { UnlikeAssetByIdRoute } from "./unlike-asset" | ||
import { AssetSearchAllFilterRoute } from "./search-assets" | ||
import { GetAssetLikesRoute } from "./get-asset-likes" | ||
import { ModifyAssetRoute } from "./modify-asset" | ||
import { UploadAssetRoute } from "./upload-asset" | ||
import { DeleteAssetByIdRoute } from "./delete-asset" | ||
|
||
const handler = new OpenAPIHono<{ Bindings: Bindings; Variables: Variables }>() | ||
|
||
handler.route("/search", SearchAssetRoute) | ||
handler.route("/get", GetAssetRoute) | ||
AssetSearchAllFilterRoute(handler) | ||
UploadAssetRoute(handler) | ||
|
||
handler.route("/upload", UploadAssetRoute) | ||
handler.route("/modify", ModifyAssetRoute) | ||
handler.route("/delete", DeleteAssetRoute) | ||
GetAssetByIdRoute(handler) | ||
ModifyAssetRoute(handler) | ||
DeleteAssetByIdRoute(handler) | ||
|
||
handler.route("/like", LikeAssetByIdRoute) | ||
handler.route("/unlike", UnlikeAssetByIdRoute) | ||
UnlikeAssetByIdRoute(handler) | ||
LikeAssetByIdRoute(handler) | ||
|
||
handler.route("/likes", GetAssetLikesRoute) | ||
GetAssetLikesRoute(handler) | ||
|
||
export default handler |
Oops, something went wrong.