mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Prompt to overwrite non-empty dirs before config
This commit is contained in:
@@ -39,8 +39,6 @@ app.use(
|
||||
app.all("/api/auth{/*path}", toNodeHandler(auth));
|
||||
{{/if}}
|
||||
|
||||
app.use(express.json())
|
||||
|
||||
{{#if (eq api "trpc")}}
|
||||
app.use(
|
||||
"/trpc",
|
||||
@@ -67,6 +65,8 @@ app.use('/rpc{*path}', async (req, res, next) => {
|
||||
});
|
||||
{{/if}}
|
||||
|
||||
app.use(express.json())
|
||||
|
||||
{{#if (includes examples "ai")}}
|
||||
app.post("/ai", async (req, res) => {
|
||||
const { messages = [] } = req.body || {};
|
||||
|
||||
Reference in New Issue
Block a user