Skip to content

Instantly share code, notes, and snippets.

View dontpaniclabsgists's full-sized avatar

Don't Panic Labs dontpaniclabsgists

View GitHub Profile
server: {
proxy: {
'^/api': {
target,
secure: false
}
},
port: 61402,
https: {
key: fs.readFileSync(keyFilePath),
methods: {
async fetchData() {
this.post = null;
this.loading = true;
var response = await fetch(''https://localhost:7185/api/weatherforecast'');
if (response.ok) {
this.post = await response.json();
this.loading = false;
}
server: {
proxy: {
'^/api': {
target,
secure: false
}
},
port: 61402,
https: {
key: fs.readFileSync(keyFilePath),
var response = await fetch('/api/weatherforecast');
if (response.ok) {
this.post = await response.json();
this.loading = false;
}
var response = await fetch('weatherforecast');
if (response.ok) {
this.post = await response.json();
this.loading = false;
}
proxy: {
'^/weatherforecast': {
target,
secure: false
}
},
const target = env.ASPNETCORE_HTTPS_PORT ? `https://localhost:${env.ASPNETCORE_HTTPS_PORT}` :
env.ASPNETCORE_URLS ? env.ASPNETCORE_URLS.split(';')[0] : 'https://localhost:7185';
server: {
proxy: {
'^/weatherforecast': {
target,
secure: false
}
},
port: 61402,
https: {
key: fs.readFileSync(keyFilePath),
{
[ApiController]
[Route("api/[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
private initialize_Mutex_NoCheck = async () => {
this.startTime = new Date().getTime();
await Promise.all([
...Array.from({ length: 3 }, async () => {
var key = 'mutexKey_NoDataCheck ';
await this.loadWithMutexLockNoDataCheck(key);
this.log(this.mutexDataMap);
})
]);
}