Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmis1000/vue-sfc-server-script

A random experiment to write http middleware directly in a vue sfc file
https://github.com/mmis1000/vue-sfc-server-script

Last synced: about 2 months ago
JSON representation

A random experiment to write http middleware directly in a vue sfc file

Awesome Lists containing this project

README

        

# Vue SFC server script

A actual working implementation of [this twitter post](https://twitter.com/_hyf0/status/1654521901631541251?s=20)

warning: this repo acts as a material of shit post. It isn't intended for someone to actually use in prod.
note: the typescript checking don't actually work because i don't care.

```html




Submit Complaint

export const submitComplaint = async ({ user, complaint }) => {
console.log('someone added a complaint!', user, complaint)
redirect(`/complaint/finished`)
}

```