diff options
author | Hailey <me@haileyok.com> | 2025-02-24 13:59:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-24 13:59:57 -0800 |
commit | 61a14043e51475b64c5c505dd10d81a0165bb3f2 (patch) | |
tree | 5b6deda9cface0b2d4a04a61f59c2bc7e9b588eb /bskylink/src/routes/index.ts | |
parent | 3fc4c32ac62403269340c40ad529bfa67cd0a35a (diff) | |
download | voidsky-61a14043e51475b64c5c505dd10d81a0165bb3f2.tar.zst |
add to blink (#7788)
Diffstat (limited to 'bskylink/src/routes/index.ts')
-rw-r--r-- | bskylink/src/routes/index.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bskylink/src/routes/index.ts b/bskylink/src/routes/index.ts index f60b99bcb..cfdaf3eaa 100644 --- a/bskylink/src/routes/index.ts +++ b/bskylink/src/routes/index.ts @@ -1,9 +1,10 @@ import {Express} from 'express' import {AppContext} from '../context.js' -import {default as create} from './create.js' +import {default as createShortLink} from './createShortLink.js' import {default as health} from './health.js' import {default as redirect} from './redirect.js' +import {default as shortLink} from './shortLink.js' import {default as siteAssociation} from './siteAssociation.js' export * from './util.js' @@ -11,7 +12,8 @@ export * from './util.js' export default function (ctx: AppContext, app: Express) { app = health(ctx, app) // GET /_health app = siteAssociation(ctx, app) // GET /.well-known/apple-app-site-association - app = create(ctx, app) // POST /link - app = redirect(ctx, app) // GET /:linkId (should go last due to permissive matching) + app = redirect(ctx, app) // GET /redirect + app = createShortLink(ctx, app) // POST /link + app = shortLink(ctx, app) // GET /:linkId (should go last due to permissive matching) return app } |