mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
chore: change folder name from 'serverless' to 'api'
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/(.*)",
|
||||
"destination": "./api/serverless.ts"
|
||||
"destination": "./api/vercel.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -4,13 +4,12 @@ export default async (
|
||||
fastify: FastifyInstance,
|
||||
_: FastifyPluginOptions,
|
||||
done: (err?: Error) => void) => {
|
||||
|
||||
fastify.get('/docs', (_, reply) => {
|
||||
reply.redirect(301, 'https://docs.tiktok-dl.tslab.site');
|
||||
reply.redirect(301, 'https://docs.tiktok-dl.tslab.site');
|
||||
});
|
||||
// API
|
||||
fastify.register(import('./api'), {
|
||||
prefix: '/api',
|
||||
prefix: '/api',
|
||||
});
|
||||
done();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user